﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web;

using FL.Bussiness;
using FL.Common;
using FL.DBModule;
using FL.DBModule.Sys;
using FL.Lite;

namespace FL.Web.BackEnd.Controllers
{
    public class UploadApiController : ApiController
    {
        [HttpPost]
        public string Post()
        {
            if (HttpContext.Current.Request.Files.Count > 0) { 
            HttpPostedFile file = HttpContext.Current.Request.Files[0];
            string strPath = "";
            file.SaveAs(strPath);
            string result = "0";
            return result;
            }
            return "";
        }
    }
}